################################################################################
## MOD Title:		easyUCP extension - Second profilepage
## MOD Author:		AmigaLink < webmaster@amigalink.de > (Markus Schmidt) http://www.EssenMitFreude.info
## 
## MOD Description:	Add a second page to the Userprofile witch can contain extended information (eg. Realname).
## MOD Version:		1.0.2 
## 
## Installation Level:	Difficult
## Installation Time:	15 Minutes 
##
## Files To Edit:  	17
##			profile.php
##			memberlist.php
##
##			admin/admin_board.php
##			admin/admin_users.php
##
##			includes/usercp_avatar.php
##			includes/usercp_register.php
##			includes/usercp_viewprofile.php
##
##			templates/subSilver/admin/board_config_body.tpl
##			templates/subSilver/admin/user_edit_body.tpl
##			templates/subSilver/easucp_body.tpl
##			templates/subSilver/memberlist_body.tpl
##			templates/subSilver/profile_add_body.tpl
##			templates/subSilver/subSilver.cfg
##
##			language/lang_english/lang_admin.php
##			language/lang_german/lang_admin.php
##			language/lang_english/lang_main.php
##			language/lang_german/lang_main.php
##
## Included Files:	2
##
##			templates/subSilver/easyucp_second_buddy.tpl
##			templates/subSilver/images/icon_second_profile.gif
##
################################################################################
## The following sites also contain the latest version of this MOD: 
## 
## http://www.AmigaLink.de
## http://www.phpBBhacks.com
## http://www.phpBB.de
## 
## Full support for this MOD can be obtained at: 
##
## http://www.AmigaLink.de
##  
################################################################################
## Mod Notes:
##
##	This MOD in an extension for the easyUCP.
##	You must install the easyUCP first!
##
################################################################################
## MOD History: 
## 
##   2006-05-31 - Version 1.0.2
##	- little bugfix
##	- add goodies drawer
## 
##   2006-02-08 - Version 1.0.1
##	- add two missing codes to installation guide
##
##   2006-01-29 - Version 1.0.0
##	- First Version
## 
################################################################################
##
##  This hack is released under the GPL License. 
##  This hack can be freely used, but not distributed, without permission.
##  Intellectual Property Rights are retained by the hack author(s) 
##  listed above.
##
################################################################################
##
##  BEFORE ADDING THIS HACK TO YOUR FORUM, please be sure to backup ALL
##  affected files.
##
################################################################################ 

#
#----------[ RUN SQL ]----------------------------------
#
#  Run the following SQL statement to update your phpBB database.
#  You can use phpMyAdmin or a similar tool to run this update.
#
#  IMPORTANT: If you have changed the table prefix from the default of phpBB2,
#  please be sure to replace phpbb with your prefix BEFORE running this update.
#

ALTER TABLE phpbb_users ADD user_realname varchar(80) default NULL AFTER username;
ALTER TABLE phpbb_users ADD user_about TEXT default NULL;
ALTER TABLE phpbb_users ADD user_about_bbcode_uid VARCHAR (255) AFTER user_about;
ALTER TABLE phpbb_users ADD user_allow_viewprofile_2 tinyint( 1 ) default '-2' NOT NULL AFTER user_allow_viewprofile;

INSERT INTO `phpbb_config` VALUES ('second_profilpage_posts', '20');
INSERT INTO `phpbb_config` VALUES ('second_profilpage_group', '0');
INSERT INTO `phpbb_config` VALUES ('max_user_about_chars', '0');

#
#----------[ COPY FILES ]-------------------------------
#
#  Copy / upload the following files to your phpBB root directory.
#  The phpBB root directory is the directory on your server containing index.php
#

copy templates/subSilver/easyucp_second_buddy.tpl to templates/subSilver/easyucp_second_buddy.tpl
copy templates/subSilver/images/icon_second_profile.gif to templates/subSilver/images/icon_second_profile.gif

#
#----------[ OPEN ]-------------------------------------
#

profile.php

#
#----------[ FIND ]-------------------------------------
#

		$ucp_mode = 'ucp_info';
	}

#
#----------[ AFTER, ADD ]-------------------------------
#

	if ( $HTTP_POST_VARS['ucp_second'] )
	{
		$ucp_mode = 'ucp_second';
	}

#
#----------[ FIND ]-------------------------------------
#

		include($phpbb_root_path . 'includes/usercp_viewprofile.'.$phpEx);

#
#----------[ BEFORE, ADD ]------------------------------
#

// <!-- BEGIN easyUCP -->
		$page = ( isset($HTTP_GET_VARS['page']) ) ? $HTTP_GET_VARS['page'] : $HTTP_POST_VARS['page'];
// <!-- END easyUCP -->

#
#----------[ OPEN ]-------------------------------------
#

memberlist.php

#
#----------[ FIND ]-------------------------------------
#

$sql = "SELECT username, user_id, user_viewemail, user_posts, user_regdate, user_from, user_website, user_email

#
#----------[ INLINE FIND ]------------------------------
#

user_email

#
#----------[ INLINE AFTER, ADD ]------------------------
#

, user_allow_viewprofile_2

#
#----------[ FIND ]-------------------------------------
#

		$profile = '<a href="' . $temp_url . '">' . $lang['Read_profile'] . '</a>';

#
#----------[ AFTER, ADD ]-------------------------------
#

// <!-- BEGIN easyUCP -->
		$second_page_allowed = false;
		if ( $row['user_allow_viewprofile_2'] != '-2' )
		{
			if ( $row['user_allow_viewprofile_2'] == '-1' || $userdata['user_level'] == ADMIN )  // Gste
			{
				$second_page_allowed = true;
			}
			else if ( $userdata['session_logged_in'] && $row['user_allow_viewprofile_2'] == '0' || $userdata['user_level'] == MOD )  // User
			{
				$second_page_allowed = true;
			}
			else
			{
				$second_page_allowed = false;
				$page = '';
			}
		}
		( $second_page_allowed ) ? $second_profile_img = '&nbsp;<img src="' . $images['icon_second_profile'] . '" alt="' . $lang['Second_profilepage'] . '" title="' . $lang['Second_profilepage'] . '" border="0" />&nbsp;' : $second_profile_img = '';
// <!-- END easyUCP -->

#
#----------[ FIND ]-------------------------------------
#

			'PROFILE' => $profile, 

#
#----------[ AFTER, ADD ]-------------------------------
#

// <!-- BEGIN easyUCP -->
			'EX_PROFILE_IMG' => $second_profile_img,
// <!-- END easyUCP -->

#
#----------[ OPEN ]-------------------------------------
#

admin/admin_board.php

#
#----------[ FIND ]-------------------------------------
#

$style_select = style_select($new['default_style'], 'default_style', "../templates");

#
#----------[ BEFORE, ADD ]------------------------------
#

// <!-- BEGIN easyUCP Second Profile -->
$sql = "SELECT group_id, group_name FROM " . GROUPS_TABLE . "
	WHERE group_single_user = 0
	ORDER BY group_id";
if ( !($result = $db->sql_query($sql)) )
{
	message_die(GENERAL_ERROR, 'Could not obtain usergroups data', '', __LINE__, __FILE__, $sql);
}

$second_profile_group_select = '<select name="second_profilpage_group">';
$second_profile_group_select .= '<option value="0">' . $lang['All_users'] . '</option>';
while( $row = $db->sql_fetchrow($result) )
{
	$second_profile_group = $row['group_name'];
	$second_profile_group_id = $row['group_id'];

	$selected = ( $second_profile_group_id == $new['second_profilpage_group'] ) ? ' selected="selected"' : '';
	$second_profile_group_select .= '<option value="' . $second_profile_group_id . '"' . $selected . '>' . $second_profile_group . '</option>';
}
$second_profile_group_select .= '</select>';

($new['max_user_about_chars'] >= '65000') ? $new['max_user_about_chars'] = '0' : '';
// <!-- END easyUCP Second Profile -->

#
#----------[ FIND ]-------------------------------------
#

	"L_ALLOW_NAME_CHANGE" => $lang['Allow_name_change'],

#
#----------[ AFTER, ADD ]-------------------------------
#

// <!-- BEGIN easyUCP Second Profile -->
	"L_SECOND_PROFILE_GROUP" => $lang['Second_profilepage_group'],
	"L_SECOND_PROFILE_GROUP_EXPLAIN" => $lang['Second_profilepage_group_Explain'],
	"L_SECOND_PROFILE_POSTS" => $lang['Second_profilepage_posts'],
	"L_SECOND_PROFILE_POSTS_EXPLAIN" => $lang['Second_profilepage_posts_Explain'],
	"L_MAX_USER_ABOUT_LENGTH" => $lang['Max_user_about_length'],
	"L_MAX_USER_ABOUT_LENGTH_EXPLAIN" => $lang['Max_user_about_length_Explain'],
// <!-- END easyUCP Second Profile -->

#
#----------[ FIND ]-------------------------------------
#

	"NAMECHANGE_YES" => $namechange_yes,
	"NAMECHANGE_NO" => $namechange_no,

#
#----------[ AFTER, ADD ]-------------------------------
#

// <!-- BEGIN easyUCP Second Profile -->
	"SECOND_PROFILE_GROUP_SELECT_BOX" => $second_profile_group_select,
	"SECOND_PROFILE_POSTS" => $new['second_profilpage_posts'], 
	"USER_ABOUT_SIZE" => $new['max_user_about_chars'], 
// <!-- END easyUCP Second Profile -->

#
#----------[ OPEN ]-------------------------------------
#

admin/admin_users.php

#
#----------[ FIND ]-------------------------------------
#

		$username = ( !empty($HTTP_POST_VARS['username']) ) ? trim(strip_tags(htmlspecialchars($HTTP_POST_VARS['username']))) : '';

#
#----------[ AFTER, ADD ]-------------------------------
#

// <!-- BEGIN easyUCP -->
		$user_realname = ( !empty($HTTP_POST_VARS['user_realname']) ) ? trim(strip_tags(htmlspecialchars($HTTP_POST_VARS['user_realname']))) : '';
// <!-- END easyUCP -->

#
#----------[ FIND ]-------------------------------------
#

		$signature = ( !empty($HTTP_POST_VARS['signature']) ) ? trim(str_replace('<br />', "\n", $HTTP_POST_VARS['signature'] ) ) : '';

#
#----------[ AFTER, ADD ]-------------------------------
#

// <!-- BEGIN easyUCP -->
		$user_about = ( !empty($HTTP_POST_VARS['user_about']) ) ? trim(str_replace('<br />', "\n", $HTTP_POST_VARS['user_about'] ) ) : '';
// <!-- END easyUCP -->

#
#----------[ FIND ]-------------------------------------
#

		$allowviewprofile = ( isset($HTTP_POST_VARS['hideprofile']) ) ? ( ($HTTP_POST_VARS['hideprofile']) ? 0 : TRUE ) : TRUE;

#
#----------[ AFTER, ADD ]-------------------------------
#

		$user_allow_viewprofile_2 = trim(strip_tags($HTTP_POST_VARS['user_allow_viewprofile_2']));

#
#----------[ FIND ]-------------------------------------
#

			$username = stripslashes($username);

#
#----------[ AFTER, ADD ]-------------------------------
#

// <!-- BEGIN easyUCP -->
			$user_realname = stripslashes($user_realname);
// <!-- END easyUCP -->

#
#----------[ FIND ]-------------------------------------
#

			$signature = htmlspecialchars(stripslashes($signature));

#
#----------[ AFTER, ADD ]-------------------------------
#

// <!-- BEGIN easyUCP -->
			$user_about = htmlspecialchars(stripslashes($user_about));
// <!-- END easyUCP -->

#
#----------[ FIND ]-------------------------------------
#

				$error_msg .=  ( ( isset($error_msg) ) ? '<br />' : '' ) . $lang['Signature_too_long'];
			}
		}

#
#----------[ AFTER, ADD ]-------------------------------
#

// <!-- BEGIN easyUCP -->
		if ($user_about != '')
		{
			$user_about_length_check = preg_replace('/(\[.*?)(=.*?)\]/is', '\\1]', stripslashes($user_about));
			if ( $allowhtml )
			{
				$user_about_length_check = preg_replace('/(\<.*?)(=.*?)( .*?=.*?)?([ \/]?\>)/is', '\\1\\3\\4', $user_about_length_check);
			}

			// Only create a new bbcode_uid when there was no uid yet.
			if ( $user_about_bbcode_uid == '' )
			{
				$user_about_bbcode_uid = ( $allowbbcode ) ? make_bbcode_uid() : '';
			}
			$user_about = prepare_message($user_about, $allowhtml, $allowbbcode, $allowsmilies, $user_about_bbcode_uid);

			( $board_config['max_user_about_chars'] == '0' || $board_config['max_user_about_chars'] >= '65000' ) ? $board_config['max_user_about_chars'] = '65000' : '';
			if ( strlen($user_about_length_check) > $board_config['max_user_about_chars'] )
			{ 
				$error = TRUE;
				$error_msg .=  ( ( isset($error_msg) ) ? '<br />' : '' ) . $lang['User_about_too_long'];
			}
		}
// <!-- END easyUCP -->

#
#----------[ FIND ]-------------------------------------
#
# Note: The real line may be longer
#

				SET " . $username_sql . $passwd_sql . "user_email = '" . str_replace("\'", "''", $email) . "'

#
#----------[ INLINE FIND ]------------------------------
#

str_replace("\'", "''", $email) . "'

#
#----------[ INLINE AFTER, ADD ]------------------------
#

, user_realname = '" . str_replace("\'", "''", $user_realname) . "'

#
#----------[ INLINE FIND ]------------------------------
#

str_replace("\'", "''", $signature) . "'

#
#----------[ INLINE AFTER, ADD ]------------------------
#

, user_about = '" . str_replace("\'", "''", $user_about) . "'

#
#----------[ INLINE FIND ]------------------------------
#

user_allow_viewprofile = $allowviewprofile

#
#----------[ INLINE AFTER, ADD ]------------------------
#

, user_allow_viewprofile_2 = '$user_allow_viewprofile_2'

#
#----------[ FIND ]-------------------------------------
#

			$username = htmlspecialchars(stripslashes($username));

#
#----------[ AFTER, ADD ]-------------------------------
#

// <!-- BEGIN easyUCP -->
			$user_realname = htmlspecialchars(stripslashes($user_realname));
// <!-- END easyUCP -->

#
#----------[ FIND ]-------------------------------------
#

			$signature = htmlspecialchars(stripslashes($signature));

#
#----------[ AFTER, ADD ]-------------------------------
#

// <!-- BEGIN easyUCP -->
			$user_about = htmlspecialchars(stripslashes($user_about));
// <!-- END easyUCP -->

#
#----------[ FIND ]-------------------------------------
#

		$username = $this_userdata['username'];

#
#----------[ AFTER, ADD ]-------------------------------
#

// <!-- BEGIN easyUCP -->
		$user_realname = $this_userdata['user_realname'];
// <!-- END easyUCP -->

#
#----------[ FIND ]-------------------------------------
#

		$signature = preg_replace($html_entities_match, $html_entities_replace, $signature);

#
#----------[ AFTER, ADD ]-------------------------------
#

// <!-- BEGIN easyUCP -->
		$user_about = ($this_userdata['user_about_bbcode_uid'] != '') ? preg_replace('#:' . $this_userdata['user_about_bbcode_uid'] . '#si', '', $this_userdata['user_about']) : $this_userdata['user_about'];
		$user_about = preg_replace($html_entities_match, $html_entities_replace, $user_about);
// <!-- END easyUCP -->

#
#----------[ FIND ]-------------------------------------
#

		$allowviewprofile = $this_userdata['user_allow_viewprofile'];
#
#----------[ AFTER, ADD ]-------------------------------
#

		$user_allow_viewprofile_2 = $this_userdata['user_allow_viewprofile_2'];

		$show_second_profile_select_box = '<select name="user_allow_viewprofile_2">';
		$show_second_profile_select_box .= '<option value="-2"' . (( $user_allow_viewprofile_2 == '-2' ) ? ' selected="selected"' : '') . '>' . $lang['Nowbody'] . '</option>';
		$show_second_profile_select_box .= '<option value="' . ANONYMOUS . '"' . (( $user_allow_viewprofile_2 == ANONYMOUS ) ? ' selected="selected"' : '') . '>' . $lang['Auth_Anonymous_Users'] . '</option>';
		$show_second_profile_select_box .= '<option value="' . USER . '"' . (( $user_allow_viewprofile_2 == USER ) ? ' selected="selected"' : '') . '>' . $lang['Auth_Registered_Users'] . '</option>';
		$show_second_profile_select_box .= '<option value="' . MOD . '"' . (( $user_allow_viewprofile_2 == MOD ) ? ' selected="selected"' : '') . '>' . $lang['Auth_Moderators'] . '</option>';
		$show_second_profile_select_box .= '<option value="' . ADMIN . '"' . (( $user_allow_viewprofile_2 == ADMIN ) ? ' selected="selected"' : '') . '>' . $lang['Auth_Administrators'] . '</option>';
		$show_second_profile_select_box .= '</select>';

#
#----------[ FIND ]-------------------------------------
#

		$smilies_status = ($this_userdata['user_allowsmile'] ) ? $lang['Smilies_are_ON'] : $lang['Smilies_are_OFF'];
	}

#
#----------[ AFTER, ADD ]-------------------------------
#

// <!-- BEGIN easyUCP -->
		( $board_config['second_profilpage_group'] == '0' && $this_userdata['user_posts'] >= $board_config['second_profilpage_posts'] ) ? $ucp_pref_second_ok = true : $ucp_pref_second_ok = false;

		if ( !$ucp_pref_second_ok )
		{
			$group_id = $board_config['second_profilpage_group'];
			$sql = 'SELECT *
				FROM '.USER_GROUP_TABLE.'
				WHERE group_id=' . $group_id . ' AND user_id=' . $this_userdata['user_id'] . ' AND user_pending=0';

			if ( !($result = $db->sql_query($sql)) ) message_die(GENERAL_ERROR, 'Couldn\'t obtain viewer group list', '', __LINE__, __FILE__, $sql);
			$ucp_pref_second_ok = ( $group = $db->sql_fetchrow($result) );
		}
// <!-- END easyUCP -->

#
#----------[ FIND ]-------------------------------------
#

			$s_hidden_fields .= '<input type="hidden" name="username" value="' . str_replace("\"", "&quot;", $username) . '" />';

#
#----------[ AFTER, ADD ]-------------------------------
#

// <!-- BEGIN easyUCP -->
			$s_hidden_fields .= '<input type="hidden" name="user_realname" value="' . str_replace("\"", "&quot;", $user_realname) . '" />';
// <!-- END easyUCP -->

#
#----------[ FIND ]-------------------------------------
#

			$s_hidden_fields .= '<input type="hidden" name="signature" value="' . str_replace("\"", "&quot;", $signature) . '" />';

#
#----------[ AFTER, ADD ]-------------------------------
#

// <!-- BEGIN easyUCP -->
			$s_hidden_fields .= '<input type="hidden" name="user_about" value="' . str_replace("\"", "&quot;", $user_about) . '" />';
// <!-- END easyUCP -->

#
#----------[ FIND ]-------------------------------------
#

			$s_hidden_fields .= '<input type="hidden" name="hideprofile" value="' . !$allowviewprofile . '" />';

#
#----------[ AFTER, ADD ]-------------------------------
#

			$s_hidden_fields .= '<input type="hidden" name="user_allow_viewprofile_2" value="' . !$user_allow_viewprofile_2 . '" />';

#
#----------[ FIND ]-------------------------------------
#

			'USERNAME' => $username,

#
#----------[ AFTER, ADD ]-------------------------------
#

// <!-- BEGIN easyUCP -->
			'REALNAME' => $user_realname,
// <!-- END easyUCP -->

#
#----------[ FIND ]-------------------------------------
#

			'SIGNATURE' => str_replace('<br />', "\n", $signature),

#
#----------[ AFTER, ADD ]-------------------------------
#

// <!-- BEGIN easyUCP -->
			'USER_ABOUT' => str_replace('<br />', "\n", $user_about),
// <!-- END easyUCP -->

#
#----------[ FIND ]-------------------------------------
#

			'HIDE_PROFILE_NO' => ( $allowviewprofile ) ? 'checked="checked"' : '',

#
#----------[ AFTER, ADD ]-------------------------------
#

			'SHOW_SECOND_PROFILE_SELECT_BOX' => $show_second_profile_select_box,

#
#----------[ FIND ]-------------------------------------
#

			'L_USERNAME' => $lang['Username'],

#
#----------[ AFTER, ADD ]-------------------------------
#

// <!-- BEGIN easyUCP -->
			'L_REALNAME' => $lang['realname'],
// <!-- END easyUCP -->

#
#----------[ FIND ]-------------------------------------
#

			'L_HIDE_PROFILE' => $lang['Hide_profile'],

#
#----------[ AFTER, ADD ]-------------------------------
#

			'L_SECOND_PROFILE' => $lang['Allow_second_profile_view'],
			'L_SECOND_PROFILE_EXPLAIN' => $lang['Allow_second_profile_view_explain'],

#
#----------[ FIND ]-------------------------------------
#

			'L_SIGNATURE_EXPLAIN' => sprintf($lang['Signature_explain'], $board_config['max_sig_chars'] ),

#
#----------[ AFTER, ADD ]-------------------------------
#

// <!-- BEGIN easyUCP -->
			'L_USER_ABOUT' => $lang['User_about'],
			'L_USER_ABOUT_EXPLAIN' => $lang['User_about_explain'],
// <!-- END easyUCP -->

#
#----------[ FIND ]-------------------------------------
#

			'L_PROFILE_INFO_NOTICE' => $lang['Profile_info_warn'],

#
#----------[ AFTER, ADD ]-------------------------------
#

// <!-- BEGIN easyUCP -->
			'L_SECOND_PROFILEPAGE' => $lang['Second_profilepage'],
			'L_SECOND_PROFILEPAGE_NOTICE' => ( $ucp_pref_second_ok ) ? $lang['Second_profilepage_notice_yes'] : $lang['Second_profilepage_notice_no'],
// <!-- END easyUCP -->

#
#----------[ OPEN ]-------------------------------------
#

includes/usercp_avatar.php

#
#----------[ FIND ]-------------------------------------
#
# Note: The real line may be longer
#

function display_avatar_gallery($mode, &$category

#
#----------[ INLINE FIND ]------------------------------
#

&$username

#
#----------[ INLINE AFTER, ADD ]------------------------
#

, &$user_realname

#
#----------[ INLINE FIND ]------------------------------
#

&$signature

#
#----------[ INLINE AFTER, ADD ]------------------------
#

, &$user_about

#
#----------[ INLINE FIND ]------------------------------
#

&$hideonline

#
#----------[ INLINE AFTER, ADD ]------------------------
#

, &$user_allow_viewprofile_2

#
#----------[ FIND ]-------------------------------------
#
# Note: The real line may be longer
#

	$params = array('coppa', 'user_id', 'username'

#
#----------[ INLINE FIND ]------------------------------
#

'username'

#
#----------[ INLINE AFTER, ADD ]------------------------
#

, 'user_realname'

#
#----------[ INLINE FIND ]------------------------------
#

'signature'

#
#----------[ INLINE AFTER, ADD ]------------------------
#

, 'user_about'

#
#----------[ INLINE FIND ]------------------------------
#

'hideonline'

#
#----------[ INLINE AFTER, ADD ]------------------------
#

, 'user_allow_viewprofile_2'

#
#----------[ OPEN ]-------------------------------------
#

includes/usercp_register.php

#
#----------[ FIND ]-------------------------------------
#
# Note: The real line may be longer
#

	$strip_var_list = array('username' => 'username', 'email' => 'email', 'icq' => 'icq', 'aim' => 'aim',

#
#----------[ INLINE FIND ]------------------------------
#

'username' => 'username'

#
#----------[ INLINE AFTER, ADD ]------------------------
#

, 'user_realname' => 'user_realname'

#
#----------[ FIND ]-------------------------------------
#
# Note: The real line may be longer
#

	$trim_var_list = array('cur_password' => 'cur_password', 'new_password' => 'new_password', 'password_confirm' => 'password_confirm', 'signature' => 'signature'

#
#----------[ INLINE FIND ]------------------------------
#

'signature' => 'signature'

#
#----------[ INLINE AFTER, ADD ]------------------------
#

, 'user_about' => 'user_about', 'user_about_bbcode_uid' => 'user_about_bbcode_uid', 'user_allow_viewprofile_2' => 'user_allow_viewprofile_2'

#
#----------[ FIND ]-------------------------------------
#

	$signature = str_replace('<br />', "\n", $signature);

#
#----------[ AFTER, ADD ]-------------------------------
#

	$user_about = str_replace('<br />', "\n", $user_about);

#
#----------[ FIND ]-------------------------------------
#
# Note: The real line may be longer
#

	validate_optional_fields($icq, $aim, $msn, $yim, $website, $location, $occupation, $interests, $signature

#
#----------[ INLINE FIND ]------------------------------
#

$signature

#
#----------[ INLINE AFTER, ADD ]------------------------
#

, $user_realname, $user_about, $user_about_bbcode_uid

#
#----------[ FIND ]-------------------------------------
#

		$username = stripslashes($username);

#
#----------[ AFTER, ADD ]-------------------------------
#

		$user_realname = stripslashes($user_realname);  // added by easyUCP

#
#----------[ FIND ]-------------------------------------
#

		$signature = stripslashes($signature);

#
#----------[ AFTER, ADD ]-------------------------------
#

		$user_about = stripslashes($user_about);  // added by easyUCP

#
#----------[ FIND ]-------------------------------------
#

		$signature = prepare_message($signature, $allowhtml, $allowbbcode, $allowsmilies, $signature_bbcode_uid);
	}

#
#----------[ AFTER, ADD ]-------------------------------
#

//<!-- BEGIN easyUCP -->
	if ( $user_about != '' )
	{
		if ( $board_config['max_user_about_chars'] && strlen($user_about) > $board_config['max_user_about_chars'] )
		{
			$error = TRUE;
			$error_msg .= ( ( isset($error_msg) ) ? '<br />' : '' ) . $lang['User_about_too_long'];
		}

		if ( $user_about_bbcode_uid == '' )
		{
			$user_about_bbcode_uid = ( $allowbbcode ) ? make_bbcode_uid() : '';
		}
		$user_about = prepare_message($user_about, $allowhtml, $allowbbcode, $allowsmilies, $user_about_bbcode_uid);
	}
//<!-- END easyUCP -->

#
#----------[ FIND ]-------------------------------------
#

// Preferences
			if ( $ucp_mode == 'ucp_prefs' || $ucp_mode == '' )

#
#----------[ BEFORE, ADD ]------------------------------
#

// Second Profile
			if ( $ucp_mode == 'ucp_second' || $ucp_mode == '' )
			{
			$sql = "UPDATE " . USERS_TABLE . "
				SET user_realname = '" . str_replace("\'", "''", $user_realname) . "', user_about_bbcode_uid = '$user_about_bbcode_uid', user_about = '" . str_replace("\'", "''", $user_about) . "'
				WHERE user_id = $user_id";
			  if ( !($result = $db->sql_query($sql)) )
			  {
				  message_die(GENERAL_ERROR, 'Could not update users table', '', __LINE__, __FILE__, $sql);
			  }
			}

#
#----------[ FIND ]-------------------------------------
#
# Note: The real line may be longer
#

				SET user_viewemail = $viewemail, user_attachsig = $attachsig, user_allowsmile = $allowsmilies, user_allowhtml = $allowhtml,

#
#----------[ INLINE FIND ]------------------------------
#

user_allow_viewprofile = $allowviewprofile

#
#----------[ INLINE AFTER, ADD ]------------------------
#

, user_allow_viewprofile_2 = '$user_allow_viewprofile_2'

#
#----------[ FIND ]-------------------------------------
#
# Note: The real line may be longer
#

			$sql = "INSERT INTO " . USERS_TABLE . "	(user_id, username

#
#----------[ INLINE FIND ]------------------------------
#

username

#
#----------[ INLINE AFTER, ADD ]------------------------
#

, user_realname

#
#----------[ INLINE FIND ]------------------------------
#

user_sig_bbcode_uid

#
#----------[ INLINE AFTER, ADD ]------------------------
#

, user_about, user_about_bbcode_uid

#
#----------[ FIND ]-------------------------------------
#
# Note: The real line may be longer
#

				VALUES ($user_id, '" . str_replace("\'", "''", $username) . "'

#
#----------[ INLINE FIND ]------------------------------
#

$username) . "'

#
#----------[ INLINE AFTER, ADD ]------------------------
#

, '" . str_replace("\'", "''", $user_realname) . "'

#
#----------[ INLINE FIND ]------------------------------
#


'$signature_bbcode_uid'

#
#----------[ INLINE AFTER, ADD ]------------------------
#

, '$user_about_bbcode_uid', '" . str_replace("\'", "''", $user_about) . "'

#
#----------[ FIND ]-------------------------------------
#

	$username = stripslashes($username);

#
#----------[ AFTER, ADD ]-------------------------------
#

	$user_realname = stripslashes($user_realname);  // added by easyUCP

#
#----------[ FIND ]-------------------------------------
#

	$signature = ($signature_bbcode_uid != '') ? preg_replace("/:(([a-z0-9]+:)?)$signature_bbcode_uid(=|\])/si", '\\3', $signature) : $signature;

#
#----------[ AFTER, ADD ]-------------------------------
#

//<!-- BEGIN easyUCP -->
	$user_about = stripslashes($user_about);
	$user_about = ($user_about_bbcode_uid != '') ? preg_replace("/:(([a-z0-9]+:)?)$user_about_bbcode_uid(=|\])/si", '\\3', $user_about) : $user_about;
//<!-- END easyUCP -->

#
#----------[ FIND ]-------------------------------------
#

	$username = $userdata['username'];

#
#----------[ AFTER, ADD ]-------------------------------
#

	$user_realname = $userdata['user_realname'];  // added by easyUCP

#
#----------[ FIND ]-------------------------------------
#

	$signature = ($signature_bbcode_uid != '') ? preg_replace("/:(([a-z0-9]+:)?)$signature_bbcode_uid(=|\])/si", '\\3', $userdata['user_sig']) : $userdata['user_sig'];

#
#----------[ AFTER, ADD ]-------------------------------
#

//<!-- BEGIN easyUCP -->
	$user_about_bbcode_uid = $userdata['user_about_bbcode_uid'];
	$user_about = ($user_about_bbcode_uid != '') ? preg_replace("/:(([a-z0-9]+:)?)$user_about_bbcode_uid(=|\])/si", '\\3', $userdata['user_about']) : $userdata['user_about'];
//<!-- END easyUCP -->

#
#----------[ FIND ]-------------------------------------
#

	$allowviewprofile = $userdata['user_allow_viewprofile'];

#
#----------[ AFTER, ADD ]-------------------------------
#

	$user_allow_viewprofile_2 = $userdata['user_allow_viewprofile_2'];

#
#----------[ FIND ]-------------------------------------
#
# Note: The real line may be longer
#

	display_avatar_gallery($mode, $avatar_category, $user_id, $email, $current_email, $coppa, $username

#
#----------[ INLINE FIND ]------------------------------
#

$username

#
#----------[ INLINE AFTER, ADD ]------------------------
#

, $user_realname

#
#----------[ INLINE FIND ]------------------------------
#

$signature

#
#----------[ INLINE AFTER, ADD ]------------------------
#

, $user_about

#
#----------[ INLINE FIND ]------------------------------
#

$allowviewonline

#
#----------[ INLINE AFTER, ADD ]------------------------
#

, $user_allow_viewprofile_2

#
#----------[ FIND ]-------------------------------------
#

	if ( $ucp_mode == 'ucp_prefs' || $ucp_mode == '' )
	{
		$template->assign_block_vars('switch_ucp_prefs', array() );

#
#----------[ BEFORE, ADD ]------------------------------
#

	// Second Profile
	if ( $ucp_mode == 'ucp_second' || $ucp_mode == '' )
	{
		$template->assign_block_vars('switch_ucp_second_profilepage', array() );
		if ( $ucp_mode != '' )
		{
			$template->assign_block_vars('switch_ucp_second_profilepage.switch_ucp_register_cut', array() );
		}
	}
	// Second Profile

#
#----------[ FIND ]-------------------------------------
#

		$template->assign_block_vars('switch_ucp_prefs', array() );

#
#----------[ AFTER, ADD ]-------------------------------
#

		// Second Profile
		if ( $ucp_mode != '' )
		{
			( $board_config['second_profilpage_group'] == '0' && $userdata['user_posts'] >= $board_config['second_profilpage_posts'] ) ? $ucp_pref_second_ok = true : $ucp_pref_second_ok = false;

			if ( !$ucp_pref_second_ok )
			{
				$group_id = $board_config['second_profilpage_group'];
				$sql = 'SELECT *
					FROM '.USER_GROUP_TABLE.'
					WHERE group_id=' . $group_id . ' AND user_id=' . $userdata['user_id'] . ' AND user_pending=0';

				if ( !($result = $db->sql_query($sql)) ) message_die(GENERAL_ERROR, 'Couldn\'t obtain viewer group list', '', __LINE__, __FILE__, $sql);
				$ucp_pref_second_ok = ( $group = $db->sql_fetchrow($result) );
			}

			if ( $ucp_pref_second_ok )
			{
				$show_second_profile_select_box = '<select name="user_allow_viewprofile_2">';
				$show_second_profile_select_box .= '<option value="-2"' . (( $user_allow_viewprofile_2 == '-2' ) ? ' selected="selected"' : '') . '>' . $lang['Nowbody'] . '</option>';
				$show_second_profile_select_box .= '<option value="' . ANONYMOUS . '"' . (( $user_allow_viewprofile_2 == ANONYMOUS ) ? ' selected="selected"' : '') . '>' . $lang['Auth_Anonymous_Users'] . '</option>';
				$show_second_profile_select_box .= '<option value="' . USER . '"' . (( $user_allow_viewprofile_2 == USER ) ? ' selected="selected"' : '') . '>' . $lang['Auth_Registered_Users'] . '</option>';
				$show_second_profile_select_box .= '<option value="' . MOD . '"' . (( $user_allow_viewprofile_2 == MOD ) ? ' selected="selected"' : '') . '>' . $lang['Auth_Moderators'] . '</option>';
				$show_second_profile_select_box .= '<option value="' . ADMIN . '"' . (( $user_allow_viewprofile_2 == ADMIN ) ? ' selected="selected"' : '') . '>' . $lang['Auth_Administrators'] . '</option>';
				$show_second_profile_select_box .= '</select>';

				$template->assign_block_vars('switch_ucp_prefs.switch_second_profile_pref', array() );
			}
		}
		// Second Profile

#
#----------[ FIND ]-------------------------------------
#

		'USERNAME' => $username,

#
#----------[ AFTER, ADD ]-------------------------------
#

// <!-- BEGIN easyUCP -->
		'REALNAME' => $user_realname,
// <!-- END easyUCP -->

#
#----------[ FIND ]-------------------------------------
#

		'SIGNATURE' => str_replace('<br />', "\n", $signature),

#
#----------[ AFTER, ADD ]-------------------------------
#

// <!-- BEGIN easyUCP -->
		'USER_ABOUT' => str_replace('<br />', "\n", $user_about),
// <!-- END easyUCP -->

#
#----------[ FIND ]-------------------------------------
#

		'HIDE_PROFILE_NO' => ( $allowviewprofile ) ? 'checked="checked"' : '',

#
#----------[ AFTER, ADD ]-------------------------------
#

		'SHOW_SECOND_PROFILE_SELECT_BOX' => $show_second_profile_select_box,

#
#----------[ FIND ]-------------------------------------
#

		'L_CURRENT_PASSWORD' => $lang['Current_password'],

#
#----------[ BEFORE, ADD ]------------------------------
#

// <!-- BEGIN easyUCP -->
		'L_REALNAME' => $lang['realname'],
		'L_REALNAME_EXPLAIN' => $lang['realname_explain'],
// <!-- END easyUCP -->

#
#----------[ FIND ]-------------------------------------
#

		'L_HIDE_PROFILE' => $lang['Hide_profile'],

#
#----------[ AFTER, ADD ]-------------------------------
#

		'L_SECOND_PROFILE' => $lang['Allow_second_profile_view'],
		'L_SECOND_PROFILE_EXPLAIN' => $lang['Allow_second_profile_view_explain'],

#
#----------[ FIND ]-------------------------------------
#

		'L_SIGNATURE_EXPLAIN' => sprintf($lang['Signature_explain'], $board_config['max_sig_chars']),

#
#----------[ AFTER, ADD ]-------------------------------
#

// <!-- BEGIN easyUCP -->
		'L_USER_ABOUT' => $lang['User_about'],
		'L_USER_ABOUT_EXPLAIN' => $lang['User_about_explain'],
// <!-- END easyUCP -->

#
#----------[ FIND ]-------------------------------------
#

		'L_PROFILE_INFO_NOTICE' => $lang['Profile_info_warn'],

#
#----------[ AFTER, ADD ]-------------------------------
#

// <!-- BEGIN easyUCP -->
		'L_SECOND_PROFILEPAGE' => $lang['Second_profilepage'],
// <!-- END easyUCP -->

#
#----------[ OPEN ]-------------------------------------
#

includes/usercp_viewprofile.php

#
#----------[ FIND ]-------------------------------------
#

// <!-- END easyUCP -->

#
#----------[ BEFORE, ADD ]------------------------------
#

if ( $profiledata['user_allow_viewprofile_2'] == '-1' || $userdata['user_level'] == ADMIN )
{
	$second_page_allowed = true;
}
else if ( $userdata['session_logged_in'] && $profiledata['user_allow_viewprofile_2'] == '0' || $userdata['user_level'] == MOD )
{
	$second_page_allowed = true;
}
else
{
	$second_page_allowed = false;
	$page = '';
}
( $profiledata['user_allow_viewprofile_2'] == '-2' ) ? $second_page_allowed = false : '';

#
#----------[ FIND ]-------------------------------------
#

$template->set_filenames(array(
// <!-- BEGIN easyUCP -->
//	'body' => 'profile_view_body.tpl')
	'body' => 'easyucp_body.tpl')
// <!-- END easyUCP -->
);

#
#----------[ REPLACE WITH ]-----------------------------
#

// <!-- BEGIN easyUCP -->
//	'body' => 'profile_view_body.tpl')
if ( $page )
{
	$second_profile_link .= '<a href="';
	$second_profile_link .= append_sid("profile.$phpEx?mode=viewprofile&u=" . $profiledata['user_id']);
	$second_profile_link .= '">&nbsp;&#171;&nbsp;' . $lang['Previous'] . '</a>';

	$template->set_filenames(array(
		'body' => 'easyucp_second_body.tpl')
	);
} else {
	if ( $second_page_allowed )
	{
		$second_profile_link .= '<a href="';
		$second_profile_link .= append_sid("profile.$phpEx?mode=viewprofile&u=" . $profiledata['user_id'] . "&page=2");
		$second_profile_link .= '">' . $lang['Next'] . '&nbsp;&#187;&nbsp;</a>';
	}

	$template->set_filenames(array(
		'body' => 'easyucp_body.tpl')
	);
}
// <!-- END easyUCP -->

#
#----------[ FIND ]-------------------------------------
#

	    $template->assign_block_vars('switch_user_sig_block', array());
    }
}

#
#----------[ AFTER, ADD ]-------------------------------
#

$user_about = '';
if ( $profiledata['user_about'] && $page )
{
	include_once($phpbb_root_path . 'includes/bbcode.'.$phpEx);
	$user_about = $profiledata['user_about'];
	$user_about_bbcode_uid = $profiledata['user_about_bbcode_uid'];
	if ($user_about != '' )
	{
		if ( !$board_config['allow_html'] && $profiledata['user_allowhtml'] )
		{
			$user_about = preg_replace('#(<)([\/]?.*?)(>)#is', "&lt;\\2&gt;", $user_about);
		}
		if ( $board_config['allow_bbcode'] && $user_about_bbcode_uid != '' )
		{
			$user_about = ( $board_config['allow_bbcode'] ) ? bbencode_second_pass($user_about, $user_about_bbcode_uid) : preg_replace('/\:[0-9a-z\:]+\]/si', ']', $user_about);
		}
		$user_about = make_clickable($user_about);

		if (!$userdata['user_allowswearywords'])
		{
			$orig_word = array();
			$replacement_word = array();
			obtain_word_list($orig_word, $replacement_word);
			$user_about = preg_replace($orig_word, $replacement_word, $user_about);
		}
		if ( $profiledata['user_allowsmile'] )
		{
			$user_about = smilies_pass($user_about);
		}
		$user_about = str_replace("\n", "\n<br />\n", $user_about);
		$template->assign_block_vars('switch_user_about', array());
    }
}

#
#----------[ FIND ]-------------------------------------
#

$usergroups = '';

#
#----------[ BEFORE, ADD ]------------------------------
#

( $board_config['second_profilpage_group'] == '0' && $profiledata['user_posts'] >= $board_config['second_profilpage_posts'] ) ? $ucp_pref_second_ok = true : $ucp_pref_second_ok = false;

#
#----------[ FIND ]-------------------------------------
#

		( (($groups[$i]['group_type'] != GROUP_HIDDEN) || ($userdata['user_level'] == ADMIN)) ? $is_ok = true : $is_ok = false );

#
#----------[ BEFORE, ADD ]------------------------------
#

		( !$ucp_pref_second_ok ) ? (( $board_config['second_profilpage_group'] == $groups[$i]['group_id'] && $profiledata['user_posts'] >= $board_config['second_profilpage_posts'] ) ? $ucp_pref_second_ok = true : '') : '';

#
#----------[ FIND ]-------------------------------------
#

		$template->assign_block_vars("switch_own_profile", array());

#
#----------[ AFTER, ADD ]-------------------------------
#

		if ( $ucp_pref_second_ok )
		{
			$template->assign_block_vars('switch_own_profile.switch_ucp_page2_button', array());
		}

#
#----------[ FIND ]-------------------------------------
#

	'EXTENSION_CONTROL' => $lang['easyUCP_extension_control'],

#
#----------[ AFTER, ADD ]-------------------------------
#

	'REALNAME' => ( $profiledata['user_realname'] ) ? $profiledata['user_realname'] : '<i>'.$lang['no_entry'].'</i>',

#
#----------[ FIND ]-------------------------------------
#

	'USER_SIG' => $user_sig,

#
#----------[ AFTER, ADD ]-------------------------------
#

	'USER_ABOUT' => $user_about,

#
#----------[ FIND ]-------------------------------------
#

	'L_PROFILE_INFO' => $lang['Profile_info'],

#
#----------[ AFTER, ADD ]-------------------------------
#

	'L_SECOND_PROFILEPAGE' => $lang['Second_profilepage'],

#
#----------[ FIND ]-------------------------------------
#

	'L_SIGNATURE' => $lang['Signature'],

#
#----------[ AFTER, ADD ]-------------------------------
#

	'L_REALNAME' => $lang['realname'],
	'L_USER_ABOUT' => $lang['User_about'],

#
#----------[ FIND ]-------------------------------------
#

	'U_PROFILE_ADMIN' => append_sid("admin/admin_users.$phpEx?mode=edit&amp;u=" . $profiledata['user_id'] . '&amp;sid='.$userdata['session_id']),

#
#----------[ AFTER, ADD ]-------------------------------
#

	'U_SECOND_PROFILE_LINK' => $second_profile_link,

#
#----------[ OPEN ]-------------------------------------
#

templates/subSilver/admin/board_config_body.tpl

#
#----------[ FIND ]-------------------------------------
#

	<tr>
		<td class="row1">{L_ALLOW_NAME_CHANGE}</td>
		<td class="row2"><input type="radio" name="allow_namechange" value="1" {NAMECHANGE_YES} /> {L_YES}&nbsp;&nbsp;<input type="radio" name="allow_namechange" value="0" {NAMECHANGE_NO} /> {L_NO}</td>
	</tr>

#
#----------[ AFTER, ADD ]-------------------------------
#

<!-- easyUCP -->
	<tr>
		<td class="row1">{L_SECOND_PROFILE_GROUP} <br /><span class="gensmall">{L_SECOND_PROFILE_GROUP_EXPLAIN}</span></td>
		<td class="row2">{SECOND_PROFILE_GROUP_SELECT_BOX}</td>
	</tr>
	<tr>
		<td class="row1">{L_SECOND_PROFILE_POSTS} <br /><span class="gensmall">{L_SECOND_PROFILE_POSTS_EXPLAIN}</span></td>
		<td class="row2"><input class="post" type="text" size="4" maxlength="4" name="second_profilpage_posts" value="{SECOND_PROFILE_POSTS}" /></td>
	</tr>
	<tr>
		<td class="row1">{L_MAX_USER_ABOUT_LENGTH}<br /><span class="gensmall">{L_MAX_USER_ABOUT_LENGTH_EXPLAIN}</span></td>
		<td class="row2"><input class="post" type="text" size="5" maxlength="5" name="max_user_about_chars" value="{USER_ABOUT_SIZE}" /></td>
	</tr>
<!-- easyUCP -->

#
#----------[ OPEN ]-------------------------------------
#

templates/subSilver/admin/user_edit_body.tpl

#
#----------[ FIND ]-------------------------------------
#

	  <td class="row2"> 
		<textarea class="post" name="signature" rows="6" cols="45">{SIGNATURE}</textarea>
	  </td>
	</tr>

#
#----------[ AFTER, ADD ]-------------------------------
#

<!-- easyUCP -->
	<tr> 
	  <td class="catsides" colspan="2"><span class="cattitle">&nbsp;</span></td>
	</tr>
	<tr> 
		<th class="thHead" colspan="2" height="25" valign="middle">{L_SECOND_PROFILEPAGE}</th>
	</tr>
	<tr> 
	  <td class="spaceRow" colspan="2" align="center"><span class="gensmall">{L_SECOND_PROFILEPAGE_NOTICE}</span></td>
	</tr>
	<tr> 
		<td class="row1" width="38%"><span class="gen">{L_REALNAME}:</span><br /><span class="gensmall">{L_REALNAME_EXPLAIN}</span></td>
		<td class="row2"><input type="text" class="post" style="width:300px" name="user_realname" value="{REALNAME}" /></td>
	</tr>
	<tr>
	  <td class="row1" valign="top"><span class="gen">{L_USER_ABOUT}:</span><br /><span class="gensmall">{L_USER_ABOUT_EXPLAIN}<br /><br />{HTML_STATUS}<br />{BBCODE_STATUS}<br />{SMILIES_STATUS}</span></td>
	  <td class="row2"><textarea name="user_about" style="width: 400px" rows="6" cols="30" class="post">{USER_ABOUT}</textarea></td>
	</tr>
<!-- easyUCP -->

#
#----------[ FIND ]-------------------------------------
#

	<tr> 
	  <td class="row1"><span class="gen">{L_HIDE_PROFILE}:</span></td>
	  <td class="row2"> 
		<input type="radio" name="hideprofile" value="1" {HIDE_PROFILE_YES} />
		<span class="gen">{L_YES}</span>&nbsp;&nbsp; 
		<input type="radio" name="hideprofile" value="0" {HIDE_PROFILE_NO} />
		<span class="gen">{L_NO}</span></td>
	</tr>

#
#----------[ AFTER, ADD ]-------------------------------
#

	<tr>
		<td class="row1"><span class="gen">{L_SECOND_PROFILE}:</span><br />
		  <span class="gensmall">{L_SECOND_PROFILE_EXPLAIN}</span></td>
		<td class="row2"><span class="gen">{SHOW_SECOND_PROFILE_SELECT_BOX}</span></td>
	</tr>

#
#----------[ OPEN ]-------------------------------------
#

templates/subSilver/easucp_body.tpl

#
#----------[ FIND ]-------------------------------------
#

						<input type="submit" name="ucp_info" style="width: 80%" value={L_PROFILE_INFO}></input><br /><br />

#
#----------[ AFTER, ADD ]-------------------------------
#

						<!-- BEGIN switch_ucp_page2_button -->
						<input type="submit" name="ucp_second" style="width: 80%" value={L_SECOND_PROFILEPAGE}></input><br /><br />
						<!-- END switch_ucp_page2_button -->

#
#----------[ FIND ]-------------------------------------
#

</table>
</form>

#
#----------[ BEFORE, ADD ]------------------------------
#

	<tr><td valign="top" align="right"><span class="nav">{U_SECOND_PROFILE_LINK}</span></td></tr>

#
#----------[ OPEN ]-------------------------------------
#

templates/subSilver/memberlist_body.tpl

#
#----------[ FIND ]-------------------------------------
#

	  <td class="{memberrow.ROW_CLASS}" align="center"><span class="gen"><a href="{memberrow.U_VIEWPROFILE}" alt="{memberrow.USERNAME}" title="{memberrow.USERNAME}" class="gen">{memberrow.USERNAME}</a></span></td>

#
#----------[ INLINE FIND ]------------------------------
#

class="gen">{memberrow.USERNAME}

#
#----------[ INLINE AFTER, ADD ]------------------------
#

{memberrow.EX_PROFILE_IMG}

#
#----------[ OPEN ]-------------------------------------
#

templates/subSilver/profile_add_body.tpl

#
#----------[ FIND ]-------------------------------------
#

	<!-- END switch_ucp_signature -->

#
#----------[ AFTER, ADD ]-------------------------------
#

	<!-- BEGIN switch_ucp_second_profilepage -->
	<!-- BEGIN switch_ucp_cut -->
	<tr> 
	  <td class="catSides" colspan="2" height="28">&nbsp;</td>
	</tr>
	<!-- END switch_ucp_cut -->
	<!-- BEGIN switch_ucp_register_cut -->
	<tr> 
		<th class="thHead" colspan="2" height="25" valign="middle">{L_SECOND_PROFILEPAGE}</th>
	</tr>
	<tr> 
		<td class="row1" width="38%"><span class="gen">{L_REALNAME}:</span><br /><span class="gensmall">{L_REALNAME_EXPLAIN}</span></td>
		<td class="row2"><input type="text" class="post" style="width:300px" name="user_realname" value="{REALNAME}" /></td>
	</tr>
	<tr>
	  <td class="row1" valign="top"><span class="gen">{L_USER_ABOUT}:</span><br /><span class="gensmall">{L_USER_ABOUT_EXPLAIN}<br /><br />{HTML_STATUS}<br />{BBCODE_STATUS}<br />{SMILIES_STATUS}</span></td>
	  <td class="row2"><textarea name="user_about" style="width: 400px" rows="6" cols="30" class="post">{USER_ABOUT}</textarea></td>
	</tr>
	<!-- END switch_ucp_register_cut -->
	<!-- END switch_ucp_second_profilepage -->

#
#----------[ FIND ]-------------------------------------
#

	<tr> 
	  <td class="row1"><span class="gen">{L_HIDE_PROFILE}:</span></td>
	  <td class="row2"> 
		<input type="radio" name="hideprofile" value="1" {HIDE_PROFILE_YES} />
		<span class="gen">{L_YES}</span>&nbsp;&nbsp; 
		<input type="radio" name="hideprofile" value="0" {HIDE_PROFILE_NO} />
		<span class="gen">{L_NO}</span></td>
	</tr>

#
#----------[ AFTER, ADD ]-------------------------------
#

<!-- BEGIN switch_second_profile_pref -->
	<tr>
		<td class="row1"><span class="gen">{L_SECOND_PROFILE}:</span><br />
		  <span class="gensmall">{L_SECOND_PROFILE_EXPLAIN}</span></td>
		<td class="row2"><span class="gen">{SHOW_SECOND_PROFILE_SELECT_BOX}</span></td>
	</tr>
<!-- END switch_second_profile_pref -->

#
#----------[ OPEN ]-------------------------------------
#

templates/subSilver/subSilver.cfg

#
#----------[ FIND ]-------------------------------------
#

$images['icon_profile'] = "$current_template_images/{LANG}/icon_profile.gif";

#
#----------[ AFTER, ADD ]-------------------------------
#

$images['icon_second_profile'] = "$current_template_images/icon_second_profile.gif";

#
#----------[ OPEN ]-------------------------------------
#

language/lang_english/lang_admin.php

#
#----------[ FIND ]-------------------------------------
#

//
// That's all Folks!
// -------------------------------------------------

?>

#
#----------[ BEFORE, ADD ]------------------------------
#

// <!-- BEGIN easyUCP Second Profile -->
$lang['Second_profilepage_group'] = 'Second profile side permit for';
$lang['Second_profilepage_group_Explain'] = 'Usergroup who can create a second profile side.';
$lang['Second_profilepage_posts'] = 'Necessary posts to create a second profile side';
$lang['Second_profilepage_posts_Explain'] = 'This minimum is additional to the membership in the possibly adjusted user group!';
$lang['Max_user_about_length'] = 'Max &quot;'.$lang['User_about'].'&quot; length';
$lang['Max_user_about_length_Explain'] = 'The maximum number of chars that users can use in there &quot;'.$lang['User_about'].'&quot; field (0 = unlimited and/or 65000).';
$lang['Second_profilepage_notice_yes'] = '<font color="green">This user fulfills the conditions to provides the '.$lang['Second_profilepage'].'.</font>';
$lang['Second_profilepage_notice_no'] = '<font color="red">This user does not fulfill the conditions to provides the '.$lang['Second_profilepage'].'!</font>';
// <!-- END easyUCP Second Profile -->

#
#----------[ OPEN ]-------------------------------------
#

language/lang_german/lang_admin.php

#
#----------[ FIND ]-------------------------------------
#

// That's all Folks!
// Na Gott sei Dank!
// -------------------------------------------------
?>

#
#----------[ BEFORE, ADD ]------------------------------
#

// <!-- BEGIN easyUCP Second Profile -->
$lang['Second_profilepage_group'] = 'Zweite Profileseite erlauben fr';
$lang['Second_profilepage_group_Explain'] = 'Benutzergruppe die eine zweite Profileseite erstellen darf.';
$lang['Second_profilepage_posts'] = 'Bentigte Beitrge zum erstellen einer zweite Profileseite';
$lang['Second_profilepage_posts_Explain'] = 'Dieses Minimum gild zustzlich zur Mitgliedschaft in der evtl. eingestellten Benutzergruppe!';
$lang['Max_user_about_length'] = 'Maximale &quot;'.$lang['User_about'].'&quot; lnge';
$lang['Max_user_about_length_Explain'] = 'Die maximale Anzahl an Zeichen, die ein Benutzer in seinem &quot;'.$lang['User_about'].'&quot; Feld nutzen darf (0 = Unbegrenzt bzw. 65000).';
$lang['Second_profilepage_notice_yes'] = '<font color="green">Dieser Benutzer erfllt die Bedingungen zum erstellen der '.$lang['Second_profilepage'].'.</font>';
$lang['Second_profilepage_notice_no'] = '<font color="red">Dieser Benutzer erfllt die Bedingungen zum erstellen der '.$lang['Second_profilepage'].' nicht!</font>';
// <!-- END easyUCP Second Profile -->

#
#----------[ OPEN ]-------------------------------------
#

language/lang_english/lang_main.php

#
#----------[ FIND ]-------------------------------------
#

$lang['no_post'] = 'no postings';

#
#----------[ AFTER, ADD ]-------------------------------
#

// Second Profile
$lang['Second_profilepage'] = 'Extra&nbsp;information';
$lang['Allow_second_profile_view'] = 'Allow extra information view for';
$lang['Allow_second_profile_view_explain'] = '';
$lang['realname'] = 'Realname';
$lang['realname_explain'] = 'Your realname.';
$lang['User_about'] = 'Something about me';
$lang['User_about_explain'] = 'Here you can write a few words to your person.';
$lang['User_about_too_long'] = 'Your &quot;'.$lang['User_about'].'&quot; is to long.';
$lang['no_entry'] = 'no entry';
$lang['Nowbody'] = 'Nowbody';

#
#----------[ OPEN ]-------------------------------------
#

language/lang_german/lang_main.php

#
#----------[ FIND ]-------------------------------------
#

$lang['no_post'] = 'keine Beitrge';

#
#----------[ AFTER, ADD ]-------------------------------
#

// Second Profile
$lang['Second_profilepage'] = 'Extra&nbsp;Infos';
$lang['Allow_second_profile_view'] = 'Ansicht der Extra Infos erlauben fr';
$lang['Allow_second_profile_view_explain'] = 'Hier kannst du bestimmen ab welchem Userstatus man deine zweite Profilseite aufrufen kann.';
$lang['realname'] = 'Echter Name';
$lang['realname_explain'] = 'Nicht der Benutzername, sondern dein richtiger.';
$lang['User_about'] = 'Etwas ber mich';
$lang['User_about_explain'] = 'Hier kannst du ein paar Worte zu deiner Person verfassen.';
$lang['User_about_too_long'] = 'Dein &quot;'.$lang['User_about'].'&quot; Eintrag ist zu lang.';
$lang['no_entry'] = 'keine Eintragung';
$lang['Nowbody'] = 'Niemand';

#
#----------[ SAVE AND CLOSE ALL FILES ]-----------------
#
# EoM